using System;
using System.Collections.Generic;
using System.Text;

namespace Developex.DatabaseWrapper
{
	/// <summary>
	/// Process database events
	/// </summary>
	public interface IDatabaseEventHandler
	{
		/// <summary>
		/// Get current datetime (for UpdateOn, CreatedOn)
		/// </summary>
		/// <returns></returns>
		DateTime GetCurrentDateTime();

		/// <summary>
		/// Called before each query
		/// </summary>
		void OnResetBetweenQueries();

		/// <summary>
		/// Get current user (for UpdatedBy, CreatedBy)
		/// </summary>
		/// <returns></returns>
		object GetCurrentUser();

	}
}
